package edu.sctu.zhengsenwen.month201506.day20150603;

/**
 * Created by user15 on 2015/6/3.
 */
public class MetroAccidents {

    private String accidents ;

    public MetroAccidents(StationData stationData) {

        this.accidents = stationData.accidents;
    }

    public void evacuatePassengers(){



        if(accidents.equals(accidents)){

            System.out.println("列车出现突发事！请尽快疏散乘客安全离开！");
        }else{
            System.out.println("继续前进！");
        }
    }
}
